// 保持登入状态
var auth = {
  getAuthorization() {
    return localStorage.getItem('Authorization');
  },
  setAuthorization(Authorization) {
    localStorage.setItem('Authorization', Authorization);
  }
}

export default {
  // 当成一个插件 挂到vue 原型上
  install: function(vue) {
    vue.prototype.$auth = auth
  }
}